﻿
namespace Xioa_UI.Domain;

public static class MapHelper
{
   [Obsolete("IEnumerable There is a risk of abnormality")]
   public  static unsafe void ForEach<T>(this IEnumerable<T> enumeration, Action<T> action)
   {
      foreach (var item in enumeration)
      {
         action(item);
      }
   }

   public static void ForEachExp(IEnumerable<string> data)
   {
      Map<string, string> map = new Map<string, string>();
      map.ForEach(e=> e.Key.Contains("1"));
   }
}